<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <h4>th:text</h4>
    <div th:text="${name}" th:value="${name}"></div>
    <h4>th:each循环</h4>
    <table>
        <tr th:each="item,stat:${citys}">
            <td th:text="${item}"></td>
            <td th:text="${stat.index}"></td>
        </tr>
    </table>
    <h4>th:if判断</h4>
    <span th:if="${age}>=18" th:text="成年"></span>
    <h4>th:text做三元表达式</h4>
    <span th:text="${age} >= 18 ? '成年' : '未成年'"></span>

    <h4>获取session中的数据</h4>
    <div th:text="${session.address}"></div>

    <h4>引入其它页面</h4>
    <div th:include="inner"></div>

    <h4>样式解析</h4>
    <div th:text="${phone}"></div>
    <div th:utext="${phone}"></div>

    <h4>超链接传值</h4>
    <a th:href="@{http:localhost:8088/test/count?count={count}(count=${count})}">点击跳转</a>

</body>
</html>